package com.QK.cnstudy;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class LaunchActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.launch);

        new Handler().postDelayed(new Runnable() { // 为了减少代码使用匿名Handler创建一个延时的调用
                            public void run() {
                                Thread thread = new Thread() {
                                    public void run() {
                                        Intent intent = new Intent(LaunchActivity.this, CnGroup_Activity.class);
                                        startActivity(intent);
                                        LaunchActivity.this.finish();
                                    };
                                };
                                thread.start();
                            }
                        }, 2000);
    }
}
